/****************************************************************************

 Copyright (C) 2009 Jean Pierre Charalambos. All rights reserved.

 Jean Pierre Charalambos (http://dis.unal.edu.co/profesores/pierre/) is an
 Affiliate Associate Professor of the Faculty of Engineering at National
 University of Colombia (http://www.unal.edu.co/).

 This file is part of maku version 0.2.

 http://code.google.com/p/maku/
 email: jpcharalambosh@unal.edu.co

 This file may be used under the terms of the GNU General Public License
 versions 2.0 or 3.0 as published by the Free Software Foundation and
 appearing in the COPYING file included in the packaging of this file.

 This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

*****************************************************************************/

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "simplescene.h"
#include "ui_mainwindow.h"

class MainWindow : public QMainWindow {
        Q_OBJECT

    public:
        MainWindow ( QWidget *parent = 0 );

    protected:
        void closeEvent ( QCloseEvent *event );

    private slots:
        void open();
        void about();

    private:
        //Ui_MainWindow ui; //this also works instead of the following line
        Ui::MainWindow ui;
        void init();
        void importActions();
        bool maybeSave() {
            return true;    //pendiente
        }
        void readSettings();
        void writeSettings();
        SimpleScene * simpleScene;
        QGraphicsView * view;
};

#endif
